package conn

import (
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

func GetDB() *gorm.DB {
	//"user:password@/dbname?charset=utf8&parseTime=True&loc=Local"
	connString := "jscx:Jxdb#2020@tcp(172.29.49.241:3306)/hxchain?charset=utf8&parseTime=True&loc=Asia%2FShanghai"

	db, _ := gorm.Open(mysql.Open(connString), &gorm.Config{})
	return db
}
